package com.ksd;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/** 
* 
* @author zbb: 
* @version 2017年9月14日
* 
*/
@Controller
public class IndexController {
	
	@RequestMapping(value = "/" , method=RequestMethod.GET)
    public String index(){
        return "home";
        
    }
	
	
	@RequestMapping(value = "/home" , method=RequestMethod.GET)
    public String home(){
        return "home";
        
    }
	@RequestMapping(value = "/api/test" , method=RequestMethod.GET)
	@ResponseBody
    public String apiTest(){
        return "api test";
        
    }
	
	@RequestMapping("/403")
    public String error(){
        return "403";
    }
}
